package com.ihome.excel.xlsx.engine.export.testing;

import java.io.FileOutputStream;
import java.io.OutputStream;

import org.apache.poi.ss.usermodel.Cell;
import org.apache.poi.ss.usermodel.Row;
import org.apache.poi.ss.usermodel.Sheet;
import org.apache.poi.ss.usermodel.Workbook;
import org.apache.poi.xssf.streaming.SXSSFWorkbook;

public class StreamExport {

	public static void main(String[] args) throws Exception{
//		Workbook wb = new SXSSFWorkbook();
//		Sheet sheet = wb.createSheet("xt");
//		Row row = null;
//		Cell cell = null;
//		for(int i = 0; i < 3 ;i ++) {
//			row = sheet.createRow(i);
//			for(int column = 0 ; column < 6 ; column ++) {
//				cell = row.createCell(column);
//				cell.setCellValue(String.valueOf(i) + String.valueOf(column) + "cValue");
//			}
//		}
//		OutputStream os = new FileOutputStream("src/test/resources/excel-write.xlsx");
//		wb.write(os);
//		os.flush();
//		os.close();
		System.out.println(Thread.class.getClass().getResourceAsStream("/excel-write-rule.xml"));
	}
	
}
